package part03_工厂模式.demo01_抽象工厂之接入多方云服务器案例.aliyun.product;

import part03_工厂模式.demo01_抽象工厂之接入多方云服务器案例.factory.product.OssImage;

/**
 * @ClassName: AliyunOssImage
 * @Author: AllenSun
 * @Date: 2023/2/12 下午1:43
 */
public class AliyunOssImage implements OssImage {

    private byte[] bytes;

    public AliyunOssImage(byte[] bytes, String watermark, boolean transparent) {
        this.bytes = bytes;
        System.out.println("【阿里云】图片已上传至阿里云OSS");
        System.out.println("【阿里云】已生成缩略图，尺寸640*480像素");
        System.out.println("【阿里云】已为图片新增水印，水印文本："+watermark+"，文本透明度："+transparent);
        System.out.println("【阿里云】已将图片AI增强为4K极清画质");


    }

    @Override
    public String getThumb() {
        return "获取阿里云缩略图";
    }

    @Override
    public String getWatermark() {
        return "获取阿里云水印";
    }

    @Override
    public String getEnhance() {
        return "获取阿里云画质增强图";
    }
}
